home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / misc-headers / vfork.h < prev   
Encoding:
C/C++ Source or Header  |  1994-05-20  |  722 b   |  34 lines  |  [TEXT/EMAC]

  1. /*
  2.  * vfork.h
  3.  *
  4.  * This file is part of a Macintosh port of GNU Emacs.
  5.  * Copyright (C) 1993, 1994 Marc Parmet.  All rights reserved.
  6.  *
  7.  * GNU Emacs is distributed in the hope that it will be useful,
  8.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.  * GNU General Public License for more details.
  11.  *
  12.  */
  13.  
  14. #ifndef __VFORK__
  15. #define __VFORK__
  16.  
  17. #include <setjmp.h>
  18.  
  19. #if defined(THINK_C)
  20. extern long *vfork1(void);
  21. #elif defined(powerc)
  22. extern long **vfork1(void);
  23. #elif defined(__MWERKS__)
  24. extern long **vfork1(void);
  25. #else
  26. #error What compiler are we using?
  27. #endif
  28.  
  29. extern int vfork2(int);
  30.  
  31. #define vfork() vfork2(setjmp(vfork1()))
  32.  
  33. #endif
  34.